package by.epam.communalservices.connection;

import java.io.InputStream;
import java.sql.Connection;

import by.epam.communalservices.exception.JkhDaoException;

public interface JdbcConnection {
    public void setConnection(InputStream in) throws JkhDaoException;

    public void setConnection(String drivers, String url, String username,
            String password);

    public void connect() throws JkhDaoException;

    public Connection getConnection();

    public void close() throws JkhDaoException;

    public void initDriver() throws JkhDaoException;

}
